//
//  FileRepositoryControlCenter.h
//  SecretRoom
//
//  Created by Sitdhibhong Laokok on 9/6/54 BE.
//  Copyright 2554 App Tree. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    kSaveImageFileTypeToPNG = 0,
    kSaveImageFileTypeToJPG = 1
} kSaveImageFileType;

@interface FileRepositoryControlCenter : NSObject {
    NSString *documentDirectory;
    NSInteger imageQuality;
    CGFloat JPGCompressedQuality;
}

@property (nonatomic, retain) NSString *imageLibrary;
@property (nonatomic, assign) NSInteger imageQuality;
@property (nonatomic, copy, readonly) NSString *documentDirectory;
@property (nonatomic, assign, readonly) CGFloat JPGCompressedQuality;

+ (NSString *)saveImage:(UIImage *) image withType:(kSaveImageFileType)imageType toSuffixLibrary:(NSString *)destinationPrex error:(NSError **)error;

+ (UIImage *)readImageWithIamgename:(NSString *)imageName error:(NSError **)error;

@end
